package com.fap.core.bo;

import java.util.List;

import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.springframework.stereotype.Repository;

@Repository
public interface BoActionMapper {
	
	@SelectProvider(type=BoSqlProvider.class,method="getObject")
	@ResultMap(value="BoResultMap")
	public BusinessObject getObject(BusinessObject param);
	
	@SelectProvider(type=BoSqlProvider.class,method="query")
	@ResultMap(value="BoResultMap")	
	public List<BusinessObject> query(@Param("param")BusinessObject param, @Param("pageId")int pageId, @Param("pageSize")int pageSize);
		
	@InsertProvider(type=BoSqlProvider.class,method="insert")
	public void insert(BusinessObject data);
	
	@UpdateProvider(type=BoSqlProvider.class,method="update")
	public void update(BusinessObject data);
	
	@DeleteProvider(type=BoSqlProvider.class,method="delete")
	public void delete(BusinessObject data);	
}
